﻿using ProTrack.Dto;
using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.SalesOrder
{
    public  interface IOrderQuoteServices
    {
        public Task<IEnumerable<OrderQuote>>GetAllAsync();

        public Task<IEnumerable<OrderQuote>>GetAsync(int  PageIndex, int PageSize,string Number,string CustomerNumber,string EmployeesId,string WarehouseId,string Status);
        public Task<int> GetCountAsync(string Number, string CustomerNumber, string EmployeesId, string WarehouseId, string Status);
        public Task<IEnumerable<OrderQuoteItemDto>> GetOrderQuotebyIdAsync(string OrderQuoteId, string WareHouseId);

        public Task<bool> AddAsync(OrderQuote model, List<OrderQuoteItem> list);
        public Task<bool> UpdateAsync(OrderQuote model, List<OrderQuoteItem> list);
        public Task<bool> DeleteAsync(int[] Ids);
        public Task<bool> updateQuoteStatus(int Id, string Status);
    }
}
